package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashSet;
import java.util.List;

public interface IPermissionService {
    void insert(Permission permission);
    void update(Permission permission);
    void delete(Long id);
    Permission selectOne(Long id);
    List<Permission> selectList();
    PageInfo<Permission> query(QueryObject qo);
    void  batchSave(@Param("permissions") LinkedHashSet<Permission> permissionSet);

    List<Permission> queryByRoleId(Long roleId);

    List<String> queryExpressionsByEmployeeId(Long employeeId);

}
